/**
 * 
 */
package com;

import java.util.Calendar;
import java.util.Timer;
import java.util.TimerTask;

/**
 * @author lionbule
 * 
 */
public class TestTimmer {
	public static void main(String[] args) {
		Timer timer = new Timer("ShopStatusTask", true);
		Calendar cal = Calendar.getInstance();
		cal.set(Calendar.HOUR_OF_DAY, 2);

		timer.scheduleAtFixedRate(new TimerTask(){

			@Override
			public void run() {
				System.out.println("12345");
			}
			
		}, cal.getTime(),
				1000 * 60 * 60 * 24);
	}
}
